#include <iostream>

#include <cstring>
#include <cstdio>
int getint() { std::cout << std::endl;return 19;}

int main()
{
	int * ptr = new int;

	int arr[] = { 1, 0 , 5, 3, 5, 1, 7, 8, 9, 0};
	std::cout << std::endl << arr[11];
	std::cout << std::endl << arr[-1];
	std::cout << std::endl << arr[getint()];
}



void foo(char* str)
{


	char* buf = new char[8];
	strcpy(buf,str);

	FILE* file = fopen("out.txt","W");
	if(!file)
		return;
	for(char* c = buf;*c;c++)
	{
		fputc((int)*c,file);
	}
	printf("HELLO WORD I READ THIS %d FROM THIS FILE %s",buf);
	delete[] buf;
	delete file;
}
